package com.cskaoyan.bean.vo.wxcomment;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

/**
 * @author :rain
 * @description
 * @since 2022/06/29 19:55
 */
public class WXcommentListVo {

    private WxUserCommentVo userInfo;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date addTime;

    private String[] picList;

    private String adminContent;

    private String content;

    private Integer valueId;

    private Boolean hasPicture;

    public Boolean getHasPicture() {
        return hasPicture;
    }

    public void setHasPicture(Boolean hasPicture) {
        this.hasPicture = hasPicture;
    }

    public Integer getValueId() {
        return valueId;
    }

    public void setValueId(Integer valueId) {
        this.valueId = valueId;
    }

    public String[] getPicList() {
        return picList;
    }

    public void setPicList(String[] picList) {
        this.picList = picList == null ? null : picList;
    }

    public WxUserCommentVo getUserInfo() {
        return userInfo;
    }

    public void setUserInfo(WxUserCommentVo userInfo) {
        this.userInfo = userInfo;
    }

    public Date getAddTime() {
        return addTime;
    }

    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }

    public String getAdminContent() {
        return adminContent;
    }

    public void setAdminContent(String adminContent) {
        this.adminContent = adminContent;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    //将参数值set进去
    public static WxUserCommentVo setUserVo(String nickName, String avatarUrl) {
        WxUserCommentVo wxUserCommentVo = new WxUserCommentVo();
        wxUserCommentVo.setNickName(nickName);
        wxUserCommentVo.setAvatarUrl(avatarUrl);
        return wxUserCommentVo;
    }
}
